<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>查看货品分类信息</title>
<link href="<%=path%>/css/core.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/form.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<s:if test="purchaseOrder.auditState == 2">
		<div id="toolbar"></div>
	</s:if>
	<div id="printArea">
	<div class="form-group">基本信息</div>
	<table class="form-table" cellspacing="1" cellpadding="1">
		<tr>
			<td class="form-left"><span class="form-required">*</span>货品编号</td>
			<td class="form-right"><s:property value="product.code" /></td>
			<td class="form-left"><span class="form-required">*</span>货品名称</td>
			<td class="form-right"><s:property value="product.name" /></td>
		</tr>
		<tr>
			<td class="form-left"><span class="form-required">*</span>品牌名称</td>
			<td class="form-right"><s:property value="product.brand" /></td>
			<td class="form-left"><span class="form-required">*</span>规格型号</td>
			<td class="form-right"><s:property value="product.standard" />
			</td>
		</tr>
		<tr>
			<td class="form-left"><span class="form-required">*</span>所属类别</td>
			<td class="form-right"><s:property
					value="product.productType.name" /></td>
			<td class="form-left"><span class="form-required">*</span>价格单位</td>
			<td class="form-right"><s:property value="product.priceUnit" />
			</td>
		</tr>
		<tr>
			<td class="form-left">普通价格</td>
			<td class="form-right"><s:property value="product.normalPrice" />
			</td>
			<td class="form-left">会员价格</td>
			<td class="form-right"><s:property value="product.discountPrice" />
			</td>
		</tr>
		<tr>
			<td class="form-left">VIP价格</td>
			<td class="form-right"><s:property value="product.vipPrice" />
			</td>
			<td class="form-left">税率</td>
			<td class="form-right"><s:property value="product.tax" /></td>
		</tr>
		<tr>
			<td class="form-left"><span class="form-required">*</span>生产商</td>
			<td class="form-right"><s:property value="product.manufacturer" />
			</td>
			<td class="form-left"><span class="form-required">*</span>产地</td>
			<td class="form-right"><s:property value="product.address" /></td>
		</tr>
		<tr>
			<td class="form-left">备注</td>
			<td class="form-right" colspan="3"><s:property
					value="product.remark" /></td>
		</tr>
	</table>
	</div>
	<script src="<%=path%>/js/core.js" type="text/javascript"></script>
	<script src="<%=path%>/js/jquery.js" type="text/javascript"></script>
	<script src="<%=path%>/js/Grid.js" type="text/javascript"></script>
	<script src="<%=path%>/js/jquery-impromptu.js" type="text/javascript"></script>
	<script src="<%=path%>/js/xToolbar.js" type="text/javascript"></script>
	<script src="<%=path%>/js/xToolbar.items.js" type="text/javascript"></script>
	<script type="text/javascript">
		var grid;

		$(document).ready(function() {
			new Toolbar({
				renderTo : 'toolbar',
				icon : '../../image/op.gif',
				border : 'both',
				items : [ {
					type : 'button',
					text : '打印',
					tip : '打印采购订单',
					useable : 'T',
					position : {
						a : '0px 0px',
						b : '0px -120px'
					},
					handler : function() {
						top.printOrder($("#printArea"));
					}
				} ]
			});
			grid = new Grid({
				titleTable : 'titleTable',
				dataTable : 'dataTable',
				widths : [ 120, 120, 100, 100, 65, 80, 95 ],
				height : 290
			});

			loadReady();
		});
	</script>
</body>
</html>